<?php get_header();?>
<div id="content">
<div id="mcontent" class="singular">
<?php if( have_posts() ): while( have_posts() ): the_post();?>
<div class="path">
<?php the_author();?>发表于<?php the_time('Y年m月j日');?>　分类：<?php the_category(',');?>
</div>
<div class="entry">
<h1 class="entry-title"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?></a></h1>
<div class="entry-content">
<?php the_content();?>
</div>
<?php if($GLOBALS['option']["single_copyright"]):?>
<div class="entry-author" style="background-image:url(<?php echo 'http://www.gravatar.com/avatar/'.md5(get_the_author_meta('user_email')).'&s=80'?>);"><?php if($GLOBALS['option']["copyright_content"]==''):?><strong>版权所有 <?php bloginfo('name');?></strong><br /><span>原创文章，未经授权，不得转载到任何博客、论坛、站点。</span><?php else: echo stripslashes($GLOBALS['option']["copyright_content"]);endif;?><br /><span class="entry-link">引用地址：<?php the_permalink();?></span><br /><span class="entry-tags">标签：<?php the_tags('',', ','');?></span><br /></div>
<?php endif;?>
<div id="postlist">
<?php if(!dynamic_sidebar('bottom')): ?>
<span>相关日志</span>
<ul>
<?php echo wp_get_related_posts(); ?>
</ul>
<span>随便看看</span>
<ul>
<?php echo get_random_posts(); ?>
</ul>
<span>最新日志</span>
<ul>
<?php echo get_latest_posts(); ?>
</ul>
<?php endif;?>
<div class="clear"></div>
</div>
<div class="entry-nav"><span class="alignleft"><?php previous_post_link('上一篇：%link', '%title', FALSE); ?></span><span class="alignright"><?php next_post_link('下一篇：%link', '%title', FALSE); ?></span></div>
</div><!--end entry-->
<div class="clear"></div>
<?php comments_template('',true);?>
<?php endwhile;?>
<?php endif;?>
</div>
<!--end mcontent-->
<div id="lcontent">
<?php get_template_part('sidebar_l','single');?>
</div>
<div id="rcontent">
<?php get_template_part('sidebar_r','single');?>
</div>
</div>
<?php get_footer();?>